package cn.edu.ctbu.sbadmin.grade.domain;

import cn.edu.ctbu.sbadmin.grade.converter.GenderConverter;
import cn.edu.ctbu.sbadmin.system.domain.UserDO;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.*;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "teacher")
@ApiModel
public class TeacherDO extends UserDO {
    private static final long serialVersionUID = 1L;

    //用户no
    @TableField(value = "t_no")
    @ExcelProperty("工号")
    private String username;
    //真名
    //@ExcelIgnore
    @ExcelProperty("职称")
    private String qualificationLevel;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty(value = "性别",converter= GenderConverter.class)
    private Integer gender;
    //头像
    @ExcelIgnore
    private String avatar;

    @ExcelProperty("最后登录时间")
    private String lastTime;

    @ExcelProperty("最后登录的IP")
    private String lastIp;
    //是否被删
    @ExcelIgnore
    private Integer isDeleted = 0;
    @ExcelIgnore
    private Date gmtDelete;
    //创建时间
    @ExcelIgnore
    private Date gmtCreate;
    //修改时间
    @ExcelIgnore
    private Date gmtModified;
    //删除人的id
    @ExcelIgnore
    private Long deleteUserid;



}

